www.mxdraw.com
内容索引主面
前一个向上下一个
IMxDrawPrint::AddPageComment 方法

添加一个页眉或页脚数据

IDL
[helpstring("method AddPageComment")]
HRESULT AddPageComment([in] BSTR sText, [in] BSTR sFont, [in] DOUBLE iFontSize, [in] LONG pos, [out,retval] VARIANT_BOOL* pRet);
参数 
说明 
[in] BSTR sFont 
字体 
[in] DOUBLE iFontSize 
字体大小,单位是mm 
[in] LONG pos 
字体位置 
sTxt 
打印的文字内容 

例如: c#

     MxDrawPrint print = new MxDrawPrint();
     print.AddPageComment("TTTTTT中文", "宋体", 3, 1);
     print.AddPageComment("TTTTTT中文", "宋体", 3, 2);
     print.AddPageComment("TTTTTT中文", "宋体", 3, 3);
     print.AddPageComment("TTTTTT中文2", "宋体", 3, 4);
     print.AddPageComment("TTTTTT中文2", "宋体", 3, 5);
     print.AddPageComment("TTTTTT中文2", "宋体", 3, 6);
     print.Print(getpoint.value().x, getpoint.value().y, retParam.AtDouble(1), retParam.AtDouble(2));
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!